package com.agilerabbit.tools;
import android.graphics.Bitmap;
import android.support.v4.util.LruCache;

public class ImageLruCacher  extends LruCache<String, Bitmap> {			
	 
		  public ImageLruCacher( int maxSize ) {			  		
		    super( maxSize );
		  }
		 
		  @Override
		  protected int sizeOf( String key, Bitmap value ) {
		    return value.getByteCount();
		    //return  value.getRowBytes() * value.getHeight();
		  }
		 
		  /*
		  @Override
		  protected void entryRemoved( boolean evicted, String key, Bitmap oldValue, Bitmap newValue ) {
		    oldValue.recycle();
		  }			  
		  */
		
}
